package com.wang.模式.创建.工厂;

/**
 * @author wang
 * @Description
 * @create 2021-10-13 16:38
 */
public abstract class Pizza {
    public abstract void prepare();
    protected String name;
    public void bake(){
        System.out.println("烤");
    }
    public void cut(){
        System.out.println("切");
    }
    public void box(){
        System.out.println("打包");
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}
